import datetime

dl = datetime.datetime.today().year
dl = datetime.datetime.strptime('2018-08-22 02:58:00','%Y-%m-%d %H:%M:%S').month
print(dl)